<template>
  <div>
    <!-- 底部导航栏 -->
    <van-tabbar
      v-model="active"
      active-color="#f41507"
      inactive-color="#9d9d9d"
      route
      :placeholder='true'
    >
      <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>
      <van-tabbar-item icon="eye-o" to="/cliassfication">分类</van-tabbar-item>
      <van-tabbar-item icon="cart-circle-o" to="/shopping"
        >购物车</van-tabbar-item
      >
      <van-tabbar-item icon="user-o" to="/my">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "Tabbar",

  data() {
    return {
      active: 0,
    };
  },

  mounted() {},
  methods: {},
};
</script>

<style>
/**底部导航栏点击变换颜色*/
.van-tab van-tab--active {
  color: #ff0000;
}
</style>